#include <stdio.h>
#include <string.h>

void input_output(){
    unsigned long long code=0; 
    scanf("%s", (char *)(&code));
    printf("long long:%llx\n", code);

    
#define UCHAR(ch)  ((unsigned char)(ch))
    char * buf = (char*)&code;
    printf("little endian: %x%x%x\n", UCHAR(buf[0]), UCHAR(buf[1]), UCHAR(buf[2]));
    printf("big endian: %x%x%x\n", UCHAR(buf[2]), UCHAR(buf[1]), UCHAR(buf[0]));

}


void compare(){
    char * first = "剪";
    char * second = "刀";
    //int ret = strcmp("剪", "剪");
    int ret = strcmp(first, second);
    if(ret == 0){
        printf("equal\n");
    }
    else{
        printf("unequal\n");
    }
}


int main(){
    input_output();

    compare();
    return 0;
}


// 剪
//  GBK BCF4
//  Unicode 526A   
//  utf-8   E589AA
//
//  utf-8 -to-> unicode 
//     E589AA --> 1110 [0101]  10[00 1001] 10[10 1010]
//                [0101] [00 1001] [10 1010]
//                [0101] [0010] [0110] [1010]
//                5   2       6      A
